#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package};

import static io.undertow.Handlers.path;

import com.networknt.handler.HandlerProvider;
import ${package}.my.MyBodyHandler;
import ${package}.my.StaticResourceHandler;

import io.undertow.server.HttpHandler;

public class WebServerHandlerProvider implements HandlerProvider {

	public HttpHandler getHandler() {
		MyBodyHandler bodyHandler = new MyBodyHandler();
		bodyHandler.setNext(path().addPrefixPath("/json", new JsonHandler()).addPrefixPath("/text", new TextHandler()));
		return path().addPrefixPath("/api", bodyHandler).addPrefixPath("/", new StaticResourceHandler());
	}

}
